package com.demo.liugui.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @ClassName: EncryptProperties
 * @Author: liugui
 * @Date: 2021-10-27 11:40
 **/
@ConfigurationProperties(prefix = "spring.encrypt")
public class EncryptProperties {
    /**
     * key 16位字符
     * 也可以配置到properties文件
     * spring.encrypt.key=xxx
     */
    private final static String DEFAULT_KEY = "liugui1234567890";

    private String key = DEFAULT_KEY;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
